﻿
//---------------------------------------------------------------------------
//Name:UserInfo
//Function: Code First POCO
//Author:	Andy
//Date:    11/23/2011 4:28:53 PM 
//---------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Wedo.Recognition.Domain.Models;
using System.ComponentModel;




namespace Wedo.Domain.Models
{
    /// <summary>
    /// UserInfo
    /// </summary>
    //[DataGrid("100%", "100%", Name = "用户信息")]
    public partial class UserInfo : Entity
    {
        #region Property


        [DisplayName( "StaffCode")]//, ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        public String StaffCode { set; get; }

        [DisplayName( "StaffNameCN")]//, ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        [Required(ErrorMessage = "{0} 不能为空！")]
        public String StaffNameCN { set; get; }

        [DisplayName("StaffNameEN")]//, ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        [Required(ErrorMessage = "{0} 不能为空！")]
        public String StaffNameEN { set; get; }



        [DisplayName("CompanyNo")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        [Required(ErrorMessage = "{0} 不能为空！")]
        public String CompanyNo { set; get; }

        [DisplayName("Department")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        public String Department { set; get; }

        [DisplayName("CostCenter")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        public String CostCenter { set; get; }

        [DisplayName("WorkCenter")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        public String WorkCenter { set; get; }

        [DisplayName("Gender")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        [Required(ErrorMessage = "{0} 不能为空！")]
        public String Gender { set; get; }


        [DisplayName("Phone")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        public String Phone { set; get; }

        [DisplayName("Mobile")]// ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        public String Mobile { set; get; }

        [DisplayName("Inner_Email")]//ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        [RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}", ErrorMessage = "邮箱格式不正确")]
        public String Inner_Email { set; get; }

        [DisplayName("Exter_Email")]//ResourceType = typeof(Wedo.Recognition.Resources.UserInfo))]
        [RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}", ErrorMessage = "邮箱格式不正确")]
        public String Exter_Email { set; get; }


        #endregion Property
    }
}
